package com.cloud.sky.entity.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Tyrone
 * @date 2024/8/1 02:51
 */
@Data
public class RouteBindRequestDTO {
    private List<String> uuids;
    private Integer subId;
    private String descTP;
    private String descSub;

    public Map<String,Object> convert2Map(){
        Map<String,Object> map = new HashMap<>();
        map.put("uuids",uuids);
        if(subId!=null){
            map.put("subId",subId);
        }
        if(descTP!=null){
            map.put("descTP",descTP);
        }
        if(descSub!=null){
            map.put("descSub",descSub);
        }
        return map;
    }
}
